home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xaw / viewportp.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  3KB  |  83 lines

  1. /*
  2.  * $XConsortium: ViewportP.h,v 1.13 90/02/13 14:04:14 jim Exp $
  3.  * Private declarations for ViewportWidgetClass
  4.  */
  5.  
  6. /************************************************************
  7. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
  8. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  9.  
  10.                         All Rights Reserved
  11.  
  12. Permission to use, copy, modify, and distribute this software and its 
  13. documentation for any purpose and without fee is hereby granted, 
  14. provided that the above copyright notice appear in all copies and that
  15. both that copyright notice and this permission notice appear in 
  16. supporting documentation, and that the names of Digital or MIT not be
  17. used in advertising or publicity pertaining to distribution of the
  18. software without specific, written prior permission.  
  19.  
  20. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  21. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  22. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  23. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  24. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  25. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  26. SOFTWARE.
  27.  
  28. ********************************************************/
  29.  
  30. #ifndef _ViewportP_h
  31. #define _ViewportP_h
  32.  
  33. #include <X11/Xaw/Viewport.h>
  34. #include <X11/Xaw/FormP.h>
  35.  
  36. typedef struct {int empty;} ViewportClassPart;
  37.  
  38. typedef struct _ViewportClassRec {
  39.     CoreClassPart    core_class;
  40.     CompositeClassPart    composite_class;
  41.     ConstraintClassPart    constraint_class;
  42.     FormClassPart    form_class;
  43.     ViewportClassPart    viewport_class;
  44. } ViewportClassRec;
  45.  
  46. extern ViewportClassRec viewportClassRec;
  47.  
  48. typedef struct _ViewportPart {
  49.     /* resources */
  50.     Boolean forcebars;        /* Whether we should always display */
  51.                 /* the selected scrollbars. */
  52.     Boolean allowhoriz;        /* Whether we allow horizontal scrollbars. */
  53.     Boolean allowvert;        /* Whether we allow vertical scrollbars. */
  54.     Boolean usebottom;        /* True iff horiz bars appear at bottom. */
  55.     Boolean useright;        /* True iff vert bars appear at right. */
  56.     XtCallbackList report_callbacks;    /* when size/position changes */
  57.     /* private state */
  58.     Widget clip, child;        /* The clipping and (scrolled) child widgets */
  59.     Widget  horiz_bar, vert_bar;/* What scrollbars we currently have. */
  60. } ViewportPart;
  61.  
  62. typedef struct _ViewportRec {
  63.     CorePart    core;
  64.     CompositePart    composite;
  65.     ConstraintPart    constraint;
  66.     FormPart        form;
  67.     ViewportPart    viewport;
  68. } ViewportRec;
  69.  
  70. typedef struct {
  71.     /* resources */
  72.  
  73.     /* private state */
  74.     Boolean        reparented; /* True if child has been re-parented */
  75. } ViewportConstraintsPart;
  76.  
  77. typedef struct _ViewportConstraintsRec {
  78.     FormConstraintsPart        form;
  79.     ViewportConstraintsPart    viewport;
  80. } ViewportConstraintsRec, *ViewportConstraints;
  81.  
  82. #endif /* _ViewportP_h */
  83.